<?php if (!defined('PIGCMS_PATH')) exit('deny access!'); ?>
<!DOCTYPE html>
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
    <meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
    <meta charset="utf-8" />
    <meta name="viewport" content="initial-scale=1.0,maximum-scale=1.0,user-scalable=no" />
    <meta name="apple-mobile-web-app-capable" content="yes" />
    <meta name="apple-mobile-web-app-status-bar-style" content="black" />
    <meta name="format-detection" content="telephone=no" />
    <title><?php if (empty($seller)) { ?>本店<?php } else { ?>分销商<?php } ?>销售额 - <?php echo $store['name'];?></title>
    <link rel="stylesheet" type="text/css" href="<?php echo TPL_URL; ?>css/foundation.css" />
    <link rel="stylesheet" type="text/css" href="<?php echo TPL_URL; ?>css/normalize.css" />
    <link rel="stylesheet" type="text/css" href="<?php echo TPL_URL; ?>css/common.css" />
    <link rel="stylesheet" type="text/css" href="<?php echo TPL_URL; ?>css/drp_dis.css" />


    <script src="<?php echo TPL_URL; ?>js/jquery.js"></script>
    <script src="<?php echo TPL_URL; ?>js/drp_foundation.js"></script>
    <meta class="foundation-data-attribute-namespace" />
    <meta class="foundation-mq-xxlarge" />
    <meta class="foundation-mq-xlarge" />
    <meta class="foundation-mq-large" />
    <meta class="foundation-mq-medium" />
    <meta class="foundation-mq-small" />
    <script src="<?php echo TPL_URL; ?>js/drp_foundation.tab.js"></script>
    <script src="<?php echo TPL_URL; ?>js/highcharts.js"></script>
    <script src="<?php echo TPL_URL; ?>js/salechartline.js"></script>
    <script>
        var store_id    = parseInt("<?php echo !empty($_GET['store_id']) ? intval(trim($_GET['store_id'])) : 0; ?>");
        function GetToDayPrice(data) {
            var strTimeslot = data;
            var timeSlot = JSON.parse(strTimeslot);
            for (var i = 0; i < timeSlot.length; i++) {
                if (timeSlot[i] != 0) {
                    $("#panel").show();
                }
            }
            return timeSlot;
        }
        function GetYesterDayPrice(data) {
            var strTimeslot = data;
            var timeSlot = JSON.parse(strTimeslot);
            for (var i = 0; i < timeSlot.length; i++) {
                if (timeSlot[i] != 0) {
                    $("#panel1").show();
                }
            }
            return timeSlot;
        }
        function GetThisWeekPrice(data) {
            var strTimeslot = data;
            var timeSlot = JSON.parse(strTimeslot);
            for (var i = 0; i < timeSlot.length; i++) {
                if (timeSlot[i] != 0) {
                    $("#panel2").show();
                }
            }
            return timeSlot;
        }
        function GetThisMonthPrice(data) {
            var strTimeslot = data;
            var timeSlot = JSON.parse(strTimeslot);
            for (var i = 0; i < timeSlot.length; i++) {
                if (timeSlot[i] != 0) {
                    $("#panel3").show();
                }
            }
            return timeSlot;
        }

    </script>
</head>
<body>

<div class="fixed">
    <nav class="tab-bar">
        <section class="left-small">
            <a class="menu-icon" href="javascript:window.history.go(-1);"><span></span></a>
        </section>
        <section class="middle tab-bar-section">
            <h1 class="title"><?php if (empty($seller)) { ?>本店<?php } else { ?>分销商<?php } ?>销售额(元)</h1>
        </section>
    </nav>
</div>

<div class="panel bro-yesterday">
    <p><i class="icon-monyg"></i><?php if (empty($seller)) { ?>本店<?php } else { ?>“<?php echo $seller; ?>”<?php } ?>销售额(元)</p>
    <span><?php echo $store['sales'];?></span>
</div>

<dl class="tabs tab-title4-chart" data-tab="">
    <dd class="active"><a href="./drp_store.php?a=sales#panel2-1" id="today">今日</a></dd>
    <dd><a href="./drp_store.php?a=sales#panel2-2" id="yesterday">昨日</a></dd>
    <dd><a href="./drp_store.php?a=sales#panel2-3" id="week">本周</a></dd>
    <dd><a href="./drp_store.php?a=sales#panel2-4" id="month">本月</a></dd>
</dl>

<div class="tabs-content tabcontent04">
    <div class="content active" id="panel2-1">
        <div id="totaltoday" style="min-width: 100%; height: 400px; margin-top: 10px;" data-highcharts-chart="0">
            <div class="highcharts-container" id="highcharts-0" style="position: relative; overflow: hidden; width: 1920px; height: 400px; text-align: left; line-height: normal; z-index: 0; -webkit-tap-highlight-color: rgba(0, 0, 0, 0);">

            </div>
        </div>
    </div>
    <div class="content" id="panel2-2">
        <div id="yestoday" style="min-width: 100%; height: 400px; margin-top: 10px;" data-highcharts-chart="1">
            <div class="highcharts-container" id="highcharts-4" style="position: relative; overflow: hidden; width: auto; height: 400px; text-align: left; line-height: normal; z-index: 0; -webkit-tap-highlight-color: rgba(0, 0, 0, 0);"></div>
        </div>
    </div>
    <div class="content" id="panel2-3">
        <div id="weekday" style="min-width: 100%; height: 400px; margin-top: 10px;" data-highcharts-chart="2">
            <div class="highcharts-container" id="highcharts-8" style="position: relative; overflow: hidden; width: auto; height: 400px; text-align: left; line-height: normal; z-index: 0; -webkit-tap-highlight-color: rgba(0, 0, 0, 0);"></div>
        </div>
    </div>
    <div class="content" id="panel2-4">
        <div id="moonth" style="min-width: 100%; height: 400px; margin-top: 10px;" data-highcharts-chart="3">
            <div class="highcharts-container" id="highcharts-12" style="position: relative; overflow: hidden; width: auto; height: 400px; text-align: left; line-height: normal; z-index: 0; -webkit-tap-highlight-color: rgba(0, 0, 0, 0);">
            </div>
        </div>
    </div>
</div>
<input type="hidden" name="url" class="url" value="./drp_store.php?a=sales" />
<script>
    $(document).foundation().foundation('joyride', 'start');
</script>


<?php echo $shareData;?>
</body></html>